//
//  UIView+Categoty.h
//  PlayCatchGame
//
//  Created by 流言 on 2018/1/15.
//  Copyright © 2018年 清正. All rights reserved.
//

#import <UIKit/UIKit.h>



typedef NS_ENUM(NSInteger, UIViewTransitionType) {
    UIViewTransitionTypeTopToBottom,
    UIViewTransitionTypeBottomToTop,
    UIViewTransitionTypeLeftToRight,
    UIViewTransitionTypeRightToLeft,
};


@interface UIView (Categoty)

/**
 *  给UIView的Xib添加一个切边的属性
 */
@property(nonatomic,assign) IBInspectable CGFloat cornerRadius;

/**
 *  给UIView的Xib添加一个描边的颜色(描边宽度为 0.8)
 */
@property(nonatomic,assign) IBInspectable UIColor *cornerColor;

/**
 *  改变UIView制定几个角圆角
 *
 *  @param rectCorner 选择哪个角(可填多种,用"|"隔开)
 *  @param radii      定制的大小
 */
- (void)cornerRectWith:(UIRectCorner)rectCorner cornerRadii:(CGSize)radii;

/**
 *  让当前view抖动
 *
 *  @param count     抖动次数/范围
 *  @param interval 每次抖动的时间
 */
- (void)shakeWithCount:(int)count interval:(NSTimeInterval)interval;

/**
 *  让当前view Push/Pop动画
 */
- (void)startAnimation:(UIViewTransitionType)transitionType;

@end
